<template>
  <div>
    <van-tabbar route active-color="orangered">
        <van-tabbar-item replace v-for="item,index in routes" :to='item.path' >{{item.meta.title}}</van-tabbar-item>
  </van-tabbar>
  </div>
</template>

<script setup lang="ts">
import { useRoute } from "vue-router";
let route=useRoute();
console.log(route.matched);
let routes=route.matched[0].children
</script>

<style scoped>
</style>
